/**
* @Title: Teacher.java
* @Package com.model
* @Description: TODO(用一句话描述该文件做什么)
* @author antch,861710865@qq.com
* @date 2017年6月30日 上午10:18:16
* @version V1.0
*/


package com.model;

import java.util.HashSet;
import java.util.Set;

/**
* @ClassName: Teacher
* @Description: TODO(这里用一句话描述这个类的作用)
* @author antch,861710865@qq.com
* @date 2017年6月30日 上午10:18:16
*
*/

public class Teacher {

	private String id;

	private String name;

	private int age;


	private Set<Student> students = new HashSet<Student>();


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getAge() {
		return age;
	}


	public void setAge(int age) {
		this.age = age;
	}


	public Set<Student> getStudents() {
		return students;
	}


	public void setStudents(Set<Student> students) {
		this.students = students;
	}


	@Override
	public String toString() {
		return "Teacher [id=" + id + ", name=" + name + ", age=" + age + ", students=" + students + "]";
	}



}
